﻿using System;
using System.Collections.Generic;
using Ue.Qcdz.Domain.TreeViews;
using Ue.Infrastructure.DomainBase;

namespace Ue.Qcdz.Repositories.TreeViews
{
    public class TreeNodeDataQuery : ITreeNodeDataQuery
    {
        public TreeNodeDataQuery(TreeView treeView, int pageIndex, int pageSize)
        {
            if (treeView == null)
            {
                throw new ArgumentNullException("treeView");
            }

            this.TreeView = treeView;
            this.PageIndex = pageIndex;
            this.PageSize = pageSize;
        }

        public TreeView TreeView { get; private set; }

        public TreeNode Parent { get; set; }

        public int PageIndex { get; private set; }

        public int PageSize { get; private set; }

        public ISort Sort { get { return null; } }
    }
}
